package com.lijianan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "Booking", autoResultMap = true)
public class Booking {
    @TableId(value = "booking_id", type = IdType.AUTO)
    private Integer booking_id;
    private Integer customer_id;
    private Integer room_id;
    private Date use_time_start;
    private Date use_time_end;
    private Integer attendee_count;
    private String status;
    private Double price_per_hour;
    private Double amount;
    private Date payment_time;
    private Date cancellation_requested_at;
    private String cancellation_status;
    private Integer cancellation_processed_by;
    private Date cancellation_processed_at;
    private Double refund_amount;
    private Integer refund_percentage;
    private Date created_at;
    private Date updated_at;
}
